package com.example.newspublish.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.newspublish.pojo.entity.Comment;
import com.example.newspublish.pojo.form.CommentForm;
import com.example.newspublish.util.result.Result;

public interface CommentService extends IService<Comment> {

    Result addComment(CommentForm commentForm);

    Result getCommentList();

    void deleteCommentById(Long id);

    Page<Comment> getCommentsByPage(int pageNUm, int pageSize);
}
